package com.micro.feign.controller;

import com.micro.feign.rpc.RpcClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: micro-service
 * @description: 供远程服务调用controller
 * @author: Lefnmg
 * @create: 2018-12-09 12:15
 **/
@RestController
public class FeignController {
    @Autowired
    RpcClient client;
    @RequestMapping("feign")
    public String getFeign() {
        return client.getPort();
    }
}
